package main

import "fmt"

func main() {
	arr := make([]int, 10, 10)
	fmt.Println(len(arr), "+", cap(arr))
	res := append(arr, 11)
	fmt.Println(res)
	fmt.Println(len(res), "+", cap(res))
	fmt.Println(arr)
	fmt.Println(len(arr), "+", cap(arr))
	fmt.Println(&arr[0] == &res[0])

	arr1 := arr[1:2]
	fmt.Println(len(arr1), ":", cap(arr1))
	arr2 := append(arr1, 3)
	fmt.Println(len(arr2), ":", cap(arr2))
	fmt.Println(arr)
}
